<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
                <option value="0" selected>顶级</option>
                {foreach name="list" item="vo"}
                <option value="{$vo.id}">{$vo.title}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[type]', ['0'=>__('寄付'), '1'=>__('到付')], 0)}
        </div>
    </div>
     <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('起送重量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weight" min="0" class="form-control" step="0.01" name="row[weight]" type="number"
                value="0.00" data-tip="">
        </div>
    </div>
     <!--<div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('超重费用')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-expense" min="0" class="form-control" step="0.01" name="row[expense]" type="number"
                value="0.00" data-tip="超出重量按每斤收费，不足1斤的按1斤收费，无需配送费则为0">
        </div>
    </div>
    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('起送费')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-send_fee" min="0" class="form-control" step="0.01" name="row[send_fee]" type="number"
                value="0.00" data-tip="无需配送费则为0">
        </div>
    </div>
    
    <div class="form-group" data-favisible="pid!=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('发货天数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_num" min="0" class="form-control" step="0" name="row[sale_num]" type="number" value="0">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>